package com.ziyun.erp.modules.freightages.dao;

import com.baomidou.mybatisplus.plugins.Page;
import com.ziyun.erp.modules.freightages.entity.FreightTemplateEntity;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 运费模板表
 * 
 * @author xueqz
 * @email 
 * @date 2018-08-10 15:38:32
 */
@Service("freightTemplateDao")
public interface FreightTemplateDao extends BaseMapper<FreightTemplateEntity> {

    Integer insertFreightTemplate(FreightTemplateEntity freightTemplate);

    void flagDelete(@Param("templateIds") Integer[] templateIds);

    List<FreightTemplateEntity> queryFreightTemplateList(Page<FreightTemplateEntity> freightTemplatePage, @Param("params") Map<String,Object> params);
}
